import { switchTab } from '@tarojs/taro';
import { useAppStore } from '@/store';

/** 跳转首页 */
export function toHome() {
  const { setActiveTab } = useAppStore();
  setActiveTab('/pages/index/index');
  switchTab({
    url: '/pages/index/index'
  });
}

/** 跳转服务页 */
export function toOrders() {
  const { setActiveTab } = useAppStore();
  setActiveTab('/package-other/orders/index');
  switchTab({
    url: '/package-other/orders/index'
  });
}
